<template>
  <van-tabbar v-model="active" route active-color="#ff5f16" v-if="$route.meta.isShow">
    <van-tabbar-item to="/Movies" icon="home-o">电影</van-tabbar-item>
    <van-tabbar-item to="/Cinema" icon="search">影院</van-tabbar-item>
    <van-tabbar-item to="/Iofo" icon="friends-o">资讯</van-tabbar-item>
    <van-tabbar-item to="/My" icon="setting-o">我的</van-tabbar-item>
  </van-tabbar>
  <router-view />
</template>

<script lang="ts">
import { ref } from 'vue'

export default {
  setup() {
    const active = ref(0)
    return { active }
  }
}
</script>

<style scoped></style>
